package com.qf.test;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.qf.test
 * @Description:
 * @Date 2022/7/5 10:13
 */
@Component
@RabbitListener(queues = "testQueue2")
public class Listener2 {
    @RabbitHandler
    public void test2(String s){
        System.out.println("这是test2"+s);
    }
}
